package com.lwc.geojson.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 城市地理数据表(市级)
 *
 * @author luwc
 * @TableName cfdns_system_geo
 * @time 2025-04-19 22:10:43
 */
@TableName(value = "cfdns_system_geo", autoResultMap = true)
@Data
public class SystemGeo implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 行政区划代码
     */
    private String adcode;

    /**
     * 城市名称
     */
    private String name;

    /**
     * 中心点经度
     */
    private Double centerLon;

    /**
     * 中心点纬度
     */
    private Double centerLat;

    /**
     * 城市边界多边形
     */
    @TableField(value = "boundary")
    @JsonIgnore
    private String boundary;

    @TableField(exist = false)
    private String boundaryWkt; // WKT格式边界

    /**
     * 边界框最小经度
     */
    private Double bboxMinLon;

    /**
     * 边界框最大经度
     */
    private Double bboxMaxLon;

    /**
     * 边界框最小纬度
     */
    private Double bboxMinLat;

    /**
     * 边界框最大纬度
     */
    private Double bboxMaxLat;

    protected Long creatorId;

    protected Timestamp createdAt;

    protected Long updaterId;

    protected Timestamp updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
